package net.huashitong.taskGroup.databean;

public enum SupervisionTaskHeaders {
    sysId("sysId","任务单号"),
    taskContent("taskContent","督查事项详情"),
    tasktimes("tasktimes","督查轮次"),
    overdueDays("overdueDays","逾期天数"),
    planEndDate("planEndDate","计划结束时间"),
    taskResult("taskResult","任务结果"),
    aaa001("aaa001","任务状态"),
    groupType("groupType","督查组别"),
    inspectors("inspectors","督查组成员"),
    phones("phones","督查组手机号"),
    resDept("resDept","责任单位"),
    operatorUser("operatorUser","责任单位经办人"),
    operatorPhone("operatorPhone","经办人手机号"),
    projectName("projectName","项目名称"),
    taskjobType("taskjobType","任务类别"),
    taskName("taskName","任务名称"),
    planStartDate("planStartDate","计划开始时间"),
    createDate("createDate","创建日期"),
    createTime("createTime","创建时间"),
    nodeId("nodeId","节点ID"),
    nodeName("nodeName","节点名称"),
    taskDate("taskDate","任务时间"),
    startDate("startDate","开始日期"),
    endDate("endDate","结束日期"),
    supervisionScore("supervisionScore","督查单位得分"),
    respScore("respScore","责任单位得分"),
    responseTime("responseTime","响应时间"),
    respResult("respResult","责任单位结果"),
    supervisionResult("supervisionResult","督查组结果"),
    isfeedbackToTack("isfeedbackToTack","是否反馈攻坚"),
    involveUnit("involveUnit","涉及部门"),


    taskName1("taskName1","节点详情"),
    planEndDate1("planEndDate1","到期日期")
    ;
    private String code;
    private String value;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    SupervisionTaskHeaders(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public static SupervisionTaskHeaders getValues(String code)
    {
        for (SupervisionTaskHeaders item:values())
        {
            if(item.getCode().equals(code))
            {
                return item;
            }
        }
        return  null;
    }
}
